﻿using System;
using MoonSharp.Interpreter;

namespace Lua
{
	// Token: 0x020002F7 RID: 759
	[MoonSharpUserData]
	public class LuaPlayerRaygun
	{
		// Token: 0x06001280 RID: 4736 RVA: 0x000814F0 File Offset: 0x0007F6F0
		[MoonSharpHidden]
		public LuaPlayerRaygun(Player player)
		{
			this.raygun = player.GetRaygun();
		}

		// Token: 0x170002C9 RID: 713
		// (get) Token: 0x06001281 RID: 4737 RVA: 0x00081504 File Offset: 0x0007F704
		// (set) Token: 0x06001282 RID: 4738 RVA: 0x00081511 File Offset: 0x0007F711
		public bool firingEnabled
		{
			get
			{
				return this.raygun.GetScriptEnableRaygun();
			}
			set
			{
				this.raygun.SetScriptEnableRaygun(value);
			}
		}

		// Token: 0x06001283 RID: 4739 RVA: 0x0008151F File Offset: 0x0007F71F
		public void SetGrowEnergyColor(int r, int g, int b)
		{
			this.raygun.SetScriptGrowColor(r, g, b);
		}

		// Token: 0x06001284 RID: 4740 RVA: 0x0008152F File Offset: 0x0007F72F
		public void ResetGrowEnergyColor()
		{
			this.raygun.ClearScriptGrowColor();
		}

		// Token: 0x06001285 RID: 4741 RVA: 0x0008153C File Offset: 0x0007F73C
		public void SetShrinkEnergyColor(int r, int g, int b)
		{
			this.raygun.SetScriptShrinkColor(r, g, b);
		}

		// Token: 0x06001286 RID: 4742 RVA: 0x0008152F File Offset: 0x0007F72F
		public void ResetShrinkEnergyColor()
		{
			this.raygun.ClearScriptGrowColor();
		}

		// Token: 0x040016D3 RID: 5843
		private PlayerRaygun raygun;
	}
}
